//
//  main.m
//  歌词解析
//
//  Created by qianfeng on 15/8/15.
//  Copyright (c) 2015年 qianfeng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Lyric.h"
#import "LyricAnalysis.h"
#define PATH @"/Users/qianfeng/Desktop/发如雪.txt"

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        
        LyricAnalysis * analysis = [[LyricAnalysis alloc] init];
        [analysis analysisLyricWithPath:PATH];
        
        int time = 0;
        while (1) {
            sleep(0.5);
            NSLog(@"%@",[analysis showLyricWithTime:time]);
            time++;
        }
        
    }
    return 0;
}
